Fix NatSpec inconsistency in GovernorVotesSuperQuorumFraction#6507
Fix NatSpec inconsistency in GovernorVotesSuperQuorumFraction#6507ernestognw wants to merge 1 commit into
Conversation
The constructor docstring and `GovernorInvalidSuperQuorumTooSmall` error description both implied a strict inequality between super quorum and quorum, but the validation accepts equal values (matching the requirements lists on `updateSuperQuorumNumerator` and `_updateSuperQuorumNumerator`). Align the constructor and error descriptions with the actual behavior. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR updates documentation in 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
Summary
GovernorInvalidSuperQuorumTooSmallerror description claim a strict inequality between super quorum and quorum, but the validation logic (in both_updateSuperQuorumNumeratorand_updateQuorumNumerator) accepts equal values, matching the requirements lists on the public/internal updaters.greater than→greater than or equal to) and the error description (smaller or equal to→smaller than) so the NatSpec consistently reflects actual behavior.Test plan
prettierandsolhintrun via pre-commit hook.🤖 Generated with Claude Code